package com.suns.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {
    @GetMapping("/main/userinfo")
    public String userinfo() {
        return "UserInfo";
    }

    @GetMapping("/admins")
    public String AdminLogin(){
        return "redirect:/admins/AdminMain";
    }
    @GetMapping("/users")
    public String UserLogin(){
        return "redirect:/users/autologin";
    }

}
